package com.bs.bszhsq.service.impl;

import com.bs.bszhsq.entity.Carport;
import com.bs.bszhsq.entity.EchartsCar;
import com.bs.bszhsq.entity.EchartsCarNum;
import com.bs.bszhsq.mapper.CarportMapper;
import com.bs.bszhsq.service.ICarportService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 车位信息 服务实现类
 * </p>
 *
 * @author 章宇光
 * @since 2024-03-25
 */
@Service
public class CarportServiceImpl extends ServiceImpl<CarportMapper, Carport> implements ICarportService {

    @Resource
    private CarportMapper carportMapper;
    @Override
    public List<EchartsCarNum> getCars() {
      return carportMapper.getCars();
    }

    @Override
    public List<EchartsCarNum> getEchartsCar() {
       return carportMapper.getEchartsCar();
    }

    @Override
    public Boolean updateCar(Long id) {
        return carportMapper.updateCar(id);
    }
}
